<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>
<body>
    <div id="app">
        <h1>
            {{ hello("Afternoon") }}
        </h1>
        <p>姓名：{{ name }}</p>
        <p>工作：{{ job }}</p>

        <p>
            <a v-bind:href="website">网站</a>
        </p>
        <p v-html="webTag"></p>
    </div>
    <script src="https://cdn.jsdelivr.net/npm/vue"></script>
    <script>
        new Vue({
            el:'#app',
            data:{
                name:'小明',
                job:"web开发",
                website:"http://www.baidu.com",
                webTag: "<a href='http://www.baidu.com'>网站2</a>"
            },
            methods: {
                hello: function (time) {
                    return "Good " + time + " " + this.name + "!"
                }
            }
        });
    </script>
</body>
</html>